
package com.idealighter.game.gamehall.handler;

import com.idealighter.game.core.annotation.ResMsgHandler;
import com.idealighter.game.gamehall.message.ResTablePwdChangedMsg;
import com.idealighter.game.message.ModuleMsgIdConstant;
import com.idealighter.game.message.core.ResMessage;
import com.idealighter.game.robot.core.Player;
import com.idealighter.game.robot.handler.ResMessageHandler;


@ResMsgHandler(ModuleMsgIdConstant.GameCommon.NOTICE_TABLE_PWD_CHANGE)
public class ResTablePwdChangedHandler implements ResMessageHandler {

  // private static final Logger LOG = LoggerFactory.getLogger(ResTablePwdChangedHandler.class);

  @Override
  public void action(Player player, ResMessage message) {
    ResTablePwdChangedMsg msg = (ResTablePwdChangedMsg) message;
    player.tablePwdChanged((int) msg.getTableId(), msg.getHasPwd());
  }
}
